package com.mit.web.util
{
	public class Validator
	{
		public function Validator()
		{
		}
		
		/* validate the given string is null or blank(one or more blank characters)*/
		public static function isNullOrBlank(str:String):Boolean{
			var r:RegExp = /^\s+$/g;

			if(str == null || str == "")
				return true;
			else if(str.match(r).length > 0)
				return true;
			else
				return false;
		}
	}
}